package com.atguigu.test5;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author 路飞
 * @date 2024/3/28 15:07
 * @description 8.	输入整型数98765，输出是56789
 */
public class Exer8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整型数据:");
        int num = scanner.nextInt();
        char[] charArray = String.valueOf(num).toCharArray();
        Arrays.sort(charArray);
        System.out.println(new String(charArray));
    }
}
